<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function Func () {
    this.option = { a: 'aaa', b: 'bbb', f: { d: 'ddddd', e: 'eeeee' } }
    this.init(this.option)
  }

  Func.prototype.init = function (option) {
    Func.prototype.otherMethods = function () {}
    this.changeOption2('abc', option)
  }

  Func.prototype.changeOption = function changeOption (opt) {
    opt.a = 'cccc'
  }

  Func.prototype.changeOption2 = function changeOption2 (a, options) {
    options.c = a
    this.changeOption(options.f)
  }

  var func = new Func()

  window.addEventListener('resize', function () { console.log('-----resize-------') })
</script>
</body>
</html>
